<?php
 /**
 * Created by 宋帅的自动工具
 * 生成时间:2020-07-04 08:34:33
 */
  namespace App\Models\User;
 use App\Models\BaseModel;

 /**
 * This is the model class for table "users_baseinfo_gs".
 * @property int10unsigned id	用户id和users表id对应
 * @property tinyint3unsigned isbase	是否填写基本信息
 * @property tinyint3unsigned iszhengjian	是否填写证件信息
 * @property tinyint3unsigned isgongsichanpin	公司产品
 * @property tinyint3unsigned ischanpinfengge	产品风格
 * @property tinyint3unsigned iszhiliangbiaozhun	质量标准
 * @property tinyint3unsigned isgongsihuanjing	公司环境
*/
class Users_baseinfo_gsModel extends BaseModel {
    // 当前模型名称
	protected $table = 'users_baseinfo_gs';
	public function attributeLabels() {
		return [
			'id' => '用户id和users表id对应',
			'isbase' => '是否填写基本信息',
			'iszhengjian' => '是否填写证件信息',
			'isgongsichanpin' => '公司产品',
			'ischanpinfengge' => '产品风格',
			'iszhiliangbiaozhun' => '质量标准',
			'isgongsihuanjing' => '公司环境',
		];
	}


	public static function setIS($Field,$uid){
	    $one=self::where([
	        'id'=>$uid
        ])->first();
	    if(!$one){
	        $one=new self;
	        $one->id=$uid;
        }
        $one[$Field]=1;
	    $one->save();
    }






}